-- GENERATED SPELL FOR [Wrathstrike Gargoyle] --


function spell0_31040(pUnit, Event) --@Gargoyle Strike,n/a--
pUnit:FullCastSpellOnTarget(16564,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31040', 1500, 1)
end

function Sorts_31040(pUnit, Event)
local choix_sorts_31040 = math.random(0, 0)
if choix_sorts_31040 == 0 then
pUnit:RegisterEvent('spell0_31040', 1, 1)
end
end

function mob31040_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31040', math.random(1500, 3000), 1)
end

function mob31040_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31040_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31040_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31040, 1, 'mob31040_Action')
RegisterUnitEvent(31040, 2, 'mob31040_Leave')
RegisterUnitEvent(31040, 3, 'mob31040_Kill')
RegisterUnitEvent(31040, 4, 'mob31040_Die')
